﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.Threading;

namespace Infrastructure.WebMvc.Master
{
    public class MasterController : Controller
    {
        private string GetResource( string resource, string key)
        {
            var httpContext = ControllerContext.HttpContext;
            var culture = Thread.CurrentThread.CurrentUICulture;
            return (string)httpContext.GetGlobalResourceObject(resource, key, culture);
        }
    }
}
